how to assign applications to users